package com.bibrApp.difu.proto2javabean;

import java.util.List;

public class WalletAssetBean {
    /**
     * "page":1,
     *     "totalPages":1,
     *     "itemsOnPage":1000,
     *     "address":"ypub6X8sy1kK2MTcg8149iBYFKd9bfoLeLt1MnxQF7BzqWVqez2BVb7pRLVoiRENduwp2vJmMFnXruYQ8xc3XRgLrGToTtkMEC51yw8yeVtY5jR",
     *     "balance":"287630",
     *     "totalReceived":"45163585",
     *     "totalSent":"44875955",
     *     "unconfirmedBalance":"0",
     *     "unconfirmedTxs":0,
     *     "txs":105,
     *     "usedTokens":84,
     *     "transactions":[{
     *             "txid":"207db0c9f8773c802bf348c1dd0b8fb63dc0d7dc815a4942eb0b23a6f75a8b8c",
     *             "version":1,
     *             "vin":[
     *                 {
     *                     "txid":"c8551125c7ba2456cf3f4cfdcd592c5c27f3bcf4ebd71ea2672110ebc233f359",
     *                     "sequence":4294967295,
     *                     "n":0,
     *                     "addresses":[
     *                         "32aCTqrDR5pYNrPHmxbUmy5YihbArq26c7"
     *                     ],
     *                     "isAddress":true,
     *                     "value":"288960",
     *                     "hex":"160014332f4d1f7e6bc0c41ba819618b94301483e6d0d1"
     *                 }
     *             ],
     *             "vout":[
     *                 {
     *                     "value":"287630",
     *                     "n":0,
     *                     "hex":"a91436260a5543d3e6e2738ca39f2606a0aeda6cc1c887",
     *                     "addresses":[
     *                         "36dKyza2JVTxVhXTYZ2HGK2U2KQVT9KDSc"
     *                     ],
     *                     "isAddress":true
     *                 }
     *             ],
     *             "blockHash":"0000000000000000000107ace6444a7530d35006bac5c7fdc23b6d0d526a0b4b",
     *             "blockHeight":591212,
     *             "confirmations":33741,
     *             "blockTime":1566463798,
     *             "value":"287630",
     *             "valueIn":"288960",
     *             "fees":"1330",
     *             "hex":"0100000000010159f333c2eb102167a21ed7ebf4bcf3275c2c59cdfd4c3fcf5624bac7251155c80000000017160014332f4d1f7e6bc0c41ba819618b94301483e6d0d1ffffffff018e6304000000000017a91436260a5543d3e6e2738ca39f2606a0aeda6cc1c88702483045022100f2840d70296b0f181f6f8a5f4097c15b62daec76810cee39420154f4c955b1e8022001bf60283bf77d5df983d9c2c33e9b3897737d346b050c0f2ceac7de53701ad0012102313c28ba842ba3810c434f533ba432f9f3acf0a6e293673e59d31b4ee9456a3300000000"
     *         }]
     */
    private String balance;
    private String address;
    private String totalReceived;
    private String totalSent;
    private List<Transactions> transactions;
    private List<Tokens> tokens;

    public List<Tokens> getTokens() {
        return tokens;
    }

    public void setTokens(List<Tokens> tokens) {
        this.tokens = tokens;
    }

    public List<Transactions> getTransactions() {
        return transactions;
    }

    public void setTransactions(List<Transactions> transactions) {
        this.transactions = transactions;
    }

    public String getBalance() {
        return balance;
    }

    public void setBalance(String balance) {
        this.balance = balance;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTotalReceived() {
        return totalReceived;
    }

    public void setTotalReceived(String totalReceived) {
        this.totalReceived = totalReceived;
    }

    public String getTotalSent() {
        return totalSent;
    }

    public void setTotalSent(String totalSent) {
        this.totalSent = totalSent;
    }

    /**
     * txid":"207db0c9f8773c802bf348c1dd0b8fb63dc0d7dc815a4942eb0b23a6f75a8b8c",
     *      *             "version":1,
     *      *             "vin":[
     *      *                 {
     *      *                     "txid":"c8551125c7ba2456cf3f4cfdcd592c5c27f3bcf4ebd71ea2672110ebc233f359",
     *      *                     "sequence":4294967295,
     *      *                     "n":0,
     *      *                     "addresses":[
     *      *                         "32aCTqrDR5pYNrPHmxbUmy5YihbArq26c7"
     *      *                     ],
     *      *                     "isAddress":true,
     *      *                     "value":"288960",
     *      *                     "hex":"160014332f4d1f7e6bc0c41ba819618b94301483e6d0d1"
     *      *                 }
     *      *             ],
     *      *             "vout":[
     *      *                 {
     *      *                     "value":"287630",
     *      *                     "n":0,
     *      *                     "hex":"a91436260a5543d3e6e2738ca39f2606a0aeda6cc1c887",
     *      *                     "addresses":[
     *      *                         "36dKyza2JVTxVhXTYZ2HGK2U2KQVT9KDSc"
     *      *                     ],
     *      *                     "isAddress":true
     *      *                 }
     *      *             ],
     *      *             "blockHash":"0000000000000000000107ace6444a7530d35006bac5c7fdc23b6d0d526a0b4b",
     *      *             "blockHeight":591212,
     *      *             "confirmations":33741,
     *      *             "blockTime":1566463798,
     *      *             "value":"287630",
     *      *             "valueIn":"288960",
     *      *             "fees":"1330",
     *      *             "hex":"0100000000010159f333c2eb102167a21ed7ebf4bcf3275c2c59cdfd4c3fcf5624bac7251155c80000000017160014332f4d1f7e6bc0c41ba819618b94301483e6d0d1ffffffff018e6304000000000017a91436260a5543d3e6e2738ca39f2606a0aeda6cc1c88702483045022100f2840d70296b0f181f6f8a5f4097c15b62daec76810cee39420154f4c955b1e8022001bf60283bf77d5df983d9c2c33e9b3897737d346b050c0f2ceac7de53701ad0012102313c28ba842ba3810c434f533ba432f9f3acf0a6e293673e59d31b4ee9456a3300000000"
     *      *
     *      "tokens":[
     *         {
     *             "type":"XPUBAddress",
     *             "name":"3HBgprT96LdSiZKRh91BCAnkvHiysNShRa",
     *             "path":"m/49'/0'/0'/0/0",
     *             "transfers":33,
     *             "decimals":8,
     *             "balance":"0",
     *             "totalReceived":"496291",
     *             "totalSent":"496291"
     *         }
     */
    public class Transactions{
        private int version;
        private String blockHash;
        private String blockHeight;
        private String confirmations;
        private String blockTime;
        private String value;
        private String valueIn;
        private String fees;
        private String hex;

        public int getVersion() {
            return version;
        }

        public void setVersion(int version) {
            this.version = version;
        }

        public String getBlockHash() {
            return blockHash;
        }

        public void setBlockHash(String blockHash) {
            this.blockHash = blockHash;
        }

        public String getBlockHeight() {
            return blockHeight;
        }

        public void setBlockHeight(String blockHeight) {
            this.blockHeight = blockHeight;
        }

        public String getConfirmations() {
            return confirmations;
        }

        public void setConfirmations(String confirmations) {
            this.confirmations = confirmations;
        }

        public String getBlockTime() {
            return blockTime;
        }

        public void setBlockTime(String blockTime) {
            this.blockTime = blockTime;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }

        public String getValueIn() {
            return valueIn;
        }

        public void setValueIn(String valueIn) {
            this.valueIn = valueIn;
        }

        public String getFees() {
            return fees;
        }

        public void setFees(String fees) {
            this.fees = fees;
        }

        public String getHex() {
            return hex;
        }

        public void setHex(String hex) {
            this.hex = hex;
        }
    }
    public class Tokens{
        private String type;
        private String name;//地址
        private String path;
        private int transfers;
        private int decimals;
        private String balance;
        private String totalReceived;
        private String totalSent;

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPath() {
            return path;
        }

        public void setPath(String path) {
            this.path = path;
        }

        public int getTransfers() {
            return transfers;
        }

        public void setTransfers(int transfers) {
            this.transfers = transfers;
        }

        public int getDecimals() {
            return decimals;
        }

        public void setDecimals(int decimals) {
            this.decimals = decimals;
        }

        public String getBalance() {
            return balance;
        }

        public void setBalance(String balance) {
            this.balance = balance;
        }

        public String getTotalReceived() {
            return totalReceived;
        }

        public void setTotalReceived(String totalReceived) {
            this.totalReceived = totalReceived;
        }

        public String getTotalSent() {
            return totalSent;
        }

        public void setTotalSent(String totalSent) {
            this.totalSent = totalSent;
        }
    }
}
